package com.bitland.demo.microservice1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

//指明这是一个 spring boot应用
@SpringBootApplication
//允许在注册中心注册
@EnableEurekaClient
//open feign 要扫描的包
@EnableFeignClients(basePackages = {"com.bitland.demo.microservice1.openfeign.client.**"})
public class MicroService1Application {
    public static void main(String[] args) {
        SpringApplication.run(MicroService1Application.class, args);
    }
}
